package com.ruifu.pls.entity;

import com.ruifu.pls.model.asnReverseAdd.GLDataDetail;
import com.ruifu.pls.model.skuPost.GLBasSku;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * BasSku entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "BAS_SKU")
@IdClass(BasSkuId.class)
public class BasSku implements java.io.Serializable {

    // Fields

    private BasSkuId id;

    private String customerid;
    private String sku;

    private String hazardFlag;
    private String descrE;
    private String descrC;
    private String packid;
    private Double tare;
    private String activeFlag;
    private String lotid;
    private String cartongroup;
    private String putawayzone;
    private Double cube;
    private String putawaylocation;
    private Double grossweight;
    private Double netweight;
    private String cycleclass;
    private Date lastcyclecount;
    private Double reorderqty;
    private Double price;
    private String shelflifeflag;
    private BigDecimal inboundlifedays;
    private String softallocationrule;
    private String allocationrule;
    private String shelflifetype;
    private BigDecimal outboundlifedays;
    private Date addtime;
    private String addwho;
    private Date edittime;
    private String editwho;
    private String alternateSku4;
    private String alternateSku5;
    private String notes;
    private String putawayrule;
    private String alternateSku1;
    private String alternateSku2;
    private String alternateSku3;
    private String reservedfield05;
    private String skuGroup1;
    private String skuGroup2;
    private String skuGroup3;
    private String skuGroup4;
    private String skuGroup5;
    private String reservedfield01;
    private String reservedfield02;
    private String reservedfield03;
    private String reservedfield04;
    private String defaultreceivinguom;
    private String defaultshipmentuom;
    private String defaulthold;
    private String rotationid;
    private String copypackidtolotatt12;
    private Double qtymin;
    private Double qtymax;
    private BigDecimal shelflife;
    private String hscode;
    private String reservedfield06;
    private String reservedfield07;
    private String reservedfield08;
    private String reservedfield09;
    private String reservedfield10;
    private String reservedfield11;
    private String reservedfield12;
    private Double overrcvpercentage;
    private String replenishrule;
    private String specialmaintenance;
    private String firstop;
    private String medicaltype;
    private String approvalno;
    private String snAsnQty;
    private String snSoQty;
    private String invchgwithshipment;
    private String freightclass;
    private String tariffid;
    private String kitflag;
    private String reservecode;
    private String reportuom;
    private Double skulength;
    private Double skuwidth;
    private Double skuhigh;
    private Double qctime;
    private String qcrule;
    private Date firstinbounddate;
    private String reservedfield13;
    private String reservedfield14;
    private String reservedfield15;
    private String skuGroup6;
    private String skuGroup7;
    private String skuGroup8;
    private String skuGroup9;
    private String medicinespecicalcontrol;
    private String serialnocatch;
    private String scanwhencasepicking;
    private String scanwhenpiecepicking;
    private String scanwhencheck;
    private String scanwhenreceive;
    private String scanwhenputaway;
    private BigDecimal shelflifealertdays;
    private String reservedfield17;
    private String reservedfield18;
    private String reservedfield16;
    private String chkScnUom;
    private String alternativePutawayzone1;
    private String alternativePutawayzone2;
    private String scanwhenpack;
    private String scanwhenmove;
    private String imageaddress;
    private String onestepallocation;
    private String orderbysql;
    private String secondserialnocatch;
    private String allowreceiving;
    private String allowshipment;
    private String inboundserialnoqtycontrol;
    private String outboundserialnoqtycontrol;
    private String defaultcartontype;
    private String breakcs;
    private String breakea;
    private String breakip;
    private String printmedicineqcreport;
    private String scanwhenqc;
    private String overreceiving;
    private String defaultsupplierid;
    private BigDecimal casUldPhr;
    private String scanwheninvscan;
    private String maintenancereason;
    private String pickpackid;

    // Constructors

    /** default constructor */
    public BasSku() {
    }

    /** minimal constructor */
    public BasSku(BasSkuId id, String packid, String activeFlag,
                  String lotid, String shelflifetype, BigDecimal outboundlifedays,
                  Date addtime, Date edittime, String kitflag, String reportuom,
                  Double skulength, Double skuwidth, Double skuhigh) {
        this.id = id;
        this.packid = packid;
        this.activeFlag = activeFlag;
        this.lotid = lotid;
        this.shelflifetype = shelflifetype;
        this.outboundlifedays = outboundlifedays;
        this.addtime = addtime;
        this.edittime = edittime;
        this.kitflag = kitflag;
        this.reportuom = reportuom;
        this.skulength = skulength;
        this.skuwidth = skuwidth;
        this.skuhigh = skuhigh;
    }

    /** full constructor */
    public BasSku(BasSkuId id, String hazardFlag, String descrE,
                  String descrC, String packid, Double tare, String activeFlag,
                  String lotid, String cartongroup, String putawayzone, Double cube,
                  String putawaylocation, Double grossweight, Double netweight,
                  String cycleclass, Date lastcyclecount, Double reorderqty,
                  Double price, String shelflifeflag, BigDecimal inboundlifedays,
                  String softallocationrule, String allocationrule,
                  String shelflifetype, BigDecimal outboundlifedays, Date addtime,
                  String addwho, Date edittime, String editwho, String alternateSku4,
                  String alternateSku5, String notes, String putawayrule,
                  String alternateSku1, String alternateSku2, String alternateSku3,
                  String reservedfield05, String skuGroup1, String skuGroup2,
                  String skuGroup3, String skuGroup4, String skuGroup5,
                  String reservedfield01, String reservedfield02,
                  String reservedfield03, String reservedfield04,
                  String defaultreceivinguom, String defaultshipmentuom,
                  String defaulthold, String rotationid, String copypackidtolotatt12,
                  Double qtymin, Double qtymax, BigDecimal shelflife, String hscode,
                  String reservedfield06, String reservedfield07,
                  String reservedfield08, String reservedfield09,
                  String reservedfield10, String reservedfield11,
                  String reservedfield12, Double overrcvpercentage,
                  String replenishrule, String specialmaintenance, String firstop,
                  String medicaltype, String approvalno, String snAsnQty,
                  String snSoQty, String invchgwithshipment, String freightclass,
                  String tariffid, String kitflag, String reservecode,
                  String reportuom, Double skulength, Double skuwidth,
                  Double skuhigh, Double qctime, String qcrule,
                  Date firstinbounddate, String reservedfield13,
                  String reservedfield14, String reservedfield15, String skuGroup6,
                  String skuGroup7, String skuGroup8, String skuGroup9,
                  String medicinespecicalcontrol, String serialnocatch,
                  String scanwhencasepicking, String scanwhenpiecepicking,
                  String scanwhencheck, String scanwhenreceive,
                  String scanwhenputaway, BigDecimal shelflifealertdays,
                  String reservedfield17, String reservedfield18,
                  String reservedfield16, String chkScnUom,
                  String alternativePutawayzone1, String alternativePutawayzone2,
                  String scanwhenpack, String scanwhenmove, String imageaddress,
                  String onestepallocation, String orderbysql,
                  String secondserialnocatch, String allowreceiving,
                  String allowshipment, String inboundserialnoqtycontrol,
                  String outboundserialnoqtycontrol, String defaultcartontype,
                  String breakcs, String breakea, String breakip,
                  String printmedicineqcreport, String scanwhenqc,
                  String overreceiving, String defaultsupplierid,
                  BigDecimal casUldPhr, String scanwheninvscan,
                  String maintenancereason, String pickpackid) {
        this.id = id;
        this.hazardFlag = hazardFlag;
        this.descrE = descrE;
        this.descrC = descrC;
        this.packid = packid;
        this.tare = tare;
        this.activeFlag = activeFlag;
        this.lotid = lotid;
        this.cartongroup = cartongroup;
        this.putawayzone = putawayzone;
        this.cube = cube;
        this.putawaylocation = putawaylocation;
        this.grossweight = grossweight;
        this.netweight = netweight;
        this.cycleclass = cycleclass;
        this.lastcyclecount = lastcyclecount;
        this.reorderqty = reorderqty;
        this.price = price;
        this.shelflifeflag = shelflifeflag;
        this.inboundlifedays = inboundlifedays;
        this.softallocationrule = softallocationrule;
        this.allocationrule = allocationrule;
        this.shelflifetype = shelflifetype;
        this.outboundlifedays = outboundlifedays;
        this.addtime = addtime;
        this.addwho = addwho;
        this.edittime = edittime;
        this.editwho = editwho;
        this.alternateSku4 = alternateSku4;
        this.alternateSku5 = alternateSku5;
        this.notes = notes;
        this.putawayrule = putawayrule;
        this.alternateSku1 = alternateSku1;
        this.alternateSku2 = alternateSku2;
        this.alternateSku3 = alternateSku3;
        this.reservedfield05 = reservedfield05;
        this.skuGroup1 = skuGroup1;
        this.skuGroup2 = skuGroup2;
        this.skuGroup3 = skuGroup3;
        this.skuGroup4 = skuGroup4;
        this.skuGroup5 = skuGroup5;
        this.reservedfield01 = reservedfield01;
        this.reservedfield02 = reservedfield02;
        this.reservedfield03 = reservedfield03;
        this.reservedfield04 = reservedfield04;
        this.defaultreceivinguom = defaultreceivinguom;
        this.defaultshipmentuom = defaultshipmentuom;
        this.defaulthold = defaulthold;
        this.rotationid = rotationid;
        this.copypackidtolotatt12 = copypackidtolotatt12;
        this.qtymin = qtymin;
        this.qtymax = qtymax;
        this.shelflife = shelflife;
        this.hscode = hscode;
        this.reservedfield06 = reservedfield06;
        this.reservedfield07 = reservedfield07;
        this.reservedfield08 = reservedfield08;
        this.reservedfield09 = reservedfield09;
        this.reservedfield10 = reservedfield10;
        this.reservedfield11 = reservedfield11;
        this.reservedfield12 = reservedfield12;
        this.overrcvpercentage = overrcvpercentage;
        this.replenishrule = replenishrule;
        this.specialmaintenance = specialmaintenance;
        this.firstop = firstop;
        this.medicaltype = medicaltype;
        this.approvalno = approvalno;
        this.snAsnQty = snAsnQty;
        this.snSoQty = snSoQty;
        this.invchgwithshipment = invchgwithshipment;
        this.freightclass = freightclass;
        this.tariffid = tariffid;
        this.kitflag = kitflag;
        this.reservecode = reservecode;
        this.reportuom = reportuom;
        this.skulength = skulength;
        this.skuwidth = skuwidth;
        this.skuhigh = skuhigh;
        this.qctime = qctime;
        this.qcrule = qcrule;
        this.firstinbounddate = firstinbounddate;
        this.reservedfield13 = reservedfield13;
        this.reservedfield14 = reservedfield14;
        this.reservedfield15 = reservedfield15;
        this.skuGroup6 = skuGroup6;
        this.skuGroup7 = skuGroup7;
        this.skuGroup8 = skuGroup8;
        this.skuGroup9 = skuGroup9;
        this.medicinespecicalcontrol = medicinespecicalcontrol;
        this.serialnocatch = serialnocatch;
        this.scanwhencasepicking = scanwhencasepicking;
        this.scanwhenpiecepicking = scanwhenpiecepicking;
        this.scanwhencheck = scanwhencheck;
        this.scanwhenreceive = scanwhenreceive;
        this.scanwhenputaway = scanwhenputaway;
        this.shelflifealertdays = shelflifealertdays;
        this.reservedfield17 = reservedfield17;
        this.reservedfield18 = reservedfield18;
        this.reservedfield16 = reservedfield16;
        this.chkScnUom = chkScnUom;
        this.alternativePutawayzone1 = alternativePutawayzone1;
        this.alternativePutawayzone2 = alternativePutawayzone2;
        this.scanwhenpack = scanwhenpack;
        this.scanwhenmove = scanwhenmove;
        this.imageaddress = imageaddress;
        this.onestepallocation = onestepallocation;
        this.orderbysql = orderbysql;
        this.secondserialnocatch = secondserialnocatch;
        this.allowreceiving = allowreceiving;
        this.allowshipment = allowshipment;
        this.inboundserialnoqtycontrol = inboundserialnoqtycontrol;
        this.outboundserialnoqtycontrol = outboundserialnoqtycontrol;
        this.defaultcartontype = defaultcartontype;
        this.breakcs = breakcs;
        this.breakea = breakea;
        this.breakip = breakip;
        this.printmedicineqcreport = printmedicineqcreport;
        this.scanwhenqc = scanwhenqc;
        this.overreceiving = overreceiving;
        this.defaultsupplierid = defaultsupplierid;
        this.casUldPhr = casUldPhr;
        this.scanwheninvscan = scanwheninvscan;
        this.maintenancereason = maintenancereason;
        this.pickpackid = pickpackid;
    }
    public GLBasSku gBasSku = new GLBasSku();


    // Property accessors


    @Id
    @Column(name = "CUSTOMERID", nullable = false, length = 30)
    public String getCustomerid() {
        return this.customerid;
    }

    public void setCustomerid(String customerid) {

        this.customerid = customerid;
        this.gBasSku.setOwnerCode(getCustomerid());
    }

    @Id
    @Column(name = "SKU", nullable = false, length = 50)
    public String getSku() {
        return this.sku;
    }



    public void setSku(String sku) {
        this.sku = sku;
        this.gBasSku.setItemId(getSku());
        this.gBasSku.setItemCodeWms(getSku());

    }

    @Column(name = "HAZARD_FLAG", length = 5)
    public String getHazardFlag() {
        return this.hazardFlag;
    }

    public void setHazardFlag(String hazardFlag) {
        this.hazardFlag = hazardFlag;
        this.gBasSku.setIsHazardous(getHazardFlag());

    }

    @Column(name = "DESCR_E", length = 200)
    public String getDescrE() {
        return this.descrE;
    }

    public void setDescrE(String descrE) {
        this.descrE = descrE;
        this.gBasSku.setEnglishName(getDescrE());

    }

    @Column(name = "DESCR_C", length = 400)
    public String getDescrC() {
        return this.descrC;
    }

    public void setDescrC(String descrC) {
        this.descrC = descrC;
        this.gBasSku.setItemName(getDescrC());
        this.gBasSku.setItemId(getSku());
        this.gBasSku.setWarehouseCode("other");


    }

    @Column(name = "PACKID", nullable = false, length = 40)
    public String getPackid() {
        return this.packid;
    }

    public void setPackid(String packid) {
        this.packid = packid;
        this.gBasSku.setPackCode(getPackid());

    }

    @Column(name = "TARE", precision = 18, scale = 8)
    public Double getTare() {
        return this.tare;
    }

    public void setTare(Double tare) {

        this.tare = tare;
    }

    @Column(name = "ACTIVE_FLAG", nullable = false, length = 1)
    public String getActiveFlag() {
        return this.activeFlag;
    }

    public void setActiveFlag(String activeFlag) {
        this.activeFlag = activeFlag;
        this.gBasSku.setIsValid(getActiveFlag());

    }

    @Column(name = "LOTID", nullable = false, length = 10)
    public String getLotid() {
        return this.lotid;
    }

    public void setLotid(String lotid) {
        this.lotid = lotid;
        this.gBasSku.setBatchCode(getLotid());

    }

    @Column(name = "CARTONGROUP", length = 10)
    public String getCartongroup() {
        return this.cartongroup;
    }

    public void setCartongroup(String cartongroup) {
        this.cartongroup = cartongroup;
    }

    @Column(name = "PUTAWAYZONE", length = 10)
    public String getPutawayzone() {
        return this.putawayzone;
    }

    public void setPutawayzone(String putawayzone) {
        this.putawayzone = putawayzone;
    }

    @Column(name = "CUBE", precision = 18, scale = 8)
    public Double getCube() {
        return this.cube;
    }

    public void setCube(Double cube) {
        this.cube = cube;
        this.gBasSku.setVolume(getCube().toString());

    }

    @Column(name = "PUTAWAYLOCATION", length = 60)
    public String getPutawaylocation() {
        return this.putawaylocation;
    }

    public void setPutawaylocation(String putawaylocation) {

        this.putawaylocation = putawaylocation;
    }

    @Column(name = "GROSSWEIGHT", precision = 18, scale = 8)
    public Double getGrossweight() {
        return this.grossweight;
    }

    public void setGrossweight(Double grossweight) {
        this.grossweight = grossweight;
        this.gBasSku.setGrossWeight(getGrossweight().toString());

    }

    @Column(name = "NETWEIGHT", precision = 18, scale = 8)
    public Double getNetweight() {
        return this.netweight;
    }

    public void setNetweight(Double netweight) {
        this.netweight = netweight;
        this.gBasSku.setNetWeight(getNetweight().toString());

    }

    @Column(name = "CYCLECLASS", length = 1)
    public String getCycleclass() {
        return this.cycleclass;
    }

    public void setCycleclass(String cycleclass) {
        this.cycleclass = cycleclass;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "LASTCYCLECOUNT", length = 7)
    public Date getLastcyclecount() {
        return this.lastcyclecount;
    }

    public void setLastcyclecount(Date lastcyclecount) {
        this.lastcyclecount = lastcyclecount;
    }

    @Column(name = "REORDERQTY", precision = 18, scale = 3)
    public Double getReorderqty() {
        return this.reorderqty;
    }

    public void setReorderqty(Double reorderqty) {
        this.reorderqty = reorderqty;
    }

    @Column(name = "PRICE", precision = 18, scale = 8)
    public Double getPrice() {
        return this.price;
    }

    public void setPrice(Double price) {
        this.price = price;
        this.gBasSku.setTagPrice(getPrice());

    }

    @Column(name = "SHELFLIFEFLAG", length = 1)
    public String getShelflifeflag() {
        return this.shelflifeflag;
    }

    public void setShelflifeflag(String shelflifeflag) {
        this.shelflifeflag = shelflifeflag;
        this.gBasSku.setIsShelfLifeMgmt(getShelflifeflag());

    }

    @Column(name = "INBOUNDLIFEDAYS", precision = 22, scale = 0)
    public BigDecimal getInboundlifedays() {
        return this.inboundlifedays;
    }

    public void setInboundlifedays(BigDecimal inboundlifedays) {
        this.inboundlifedays = inboundlifedays;
        this.gBasSku.setRejectLifecycle(getInboundlifedays());

    }

    @Column(name = "SOFTALLOCATIONRULE", length = 20)
    public String getSoftallocationrule() {
        return this.softallocationrule;
    }

    public void setSoftallocationrule(String softallocationrule) {
        this.softallocationrule = softallocationrule;
    }

    @Column(name = "ALLOCATIONRULE", length = 20)
    public String getAllocationrule() {
        return this.allocationrule;
    }

    public void setAllocationrule(String allocationrule) {
        this.allocationrule = allocationrule;
    }

    @Column(name = "SHELFLIFETYPE", nullable = false, length = 1)
    public String getShelflifetype() {
        return this.shelflifetype;
    }

    public void setShelflifetype(String shelflifetype) {
        this.shelflifetype = shelflifetype;
    }
    //////
    @Column(name = "OUTBOUNDLIFEDAYS", nullable = false, precision = 22, scale = 0)
    public BigDecimal getOutboundlifedays() {
        return this.outboundlifedays;
    }

    public void setOutboundlifedays(BigDecimal outboundlifedays) {
        this.outboundlifedays = outboundlifedays;
        this.gBasSku.setLockupLifecycle(getOutboundlifedays());

    }


    @Temporal(TemporalType.DATE)
    @Column(name = "ADDTIME", nullable = false, length = 7)
    public Date getAddtime() {
        return this.addtime;
    }

    public void setAddtime(Date addtime) {

        this.addtime = addtime;
    }

    @Column(name = "ADDWHO", length = 35)
    public String getAddwho() {
        return this.addwho;
    }

    public void setAddwho(String addwho) {
        this.addwho = addwho;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name = "EDITTIME", nullable = false, length = 7)
    public Date getEdittime() {
        return this.edittime;
    }

    public void setEdittime(Date edittime) {
        this.edittime = edittime;
    }

    @Column(name = "EDITWHO", length = 35)
    public String getEditwho() {
        return this.editwho;
    }

    public void setEditwho(String editwho) {
        this.editwho = editwho;
    }

    @Column(name = "ALTERNATE_SKU4", length = 200)
    public String getAlternateSku4() {
        return this.alternateSku4;
    }

    public void setAlternateSku4(String alternateSku4) {
        this.alternateSku4 = alternateSku4;
    }

    @Column(name = "ALTERNATE_SKU5", length = 200)
    public String getAlternateSku5() {
        return this.alternateSku5;
    }

    public void setAlternateSku5(String alternateSku5) {
        this.alternateSku5 = alternateSku5;
        this.gBasSku.setItemCode(alternateSku5);

    }

    @Column(name = "NOTES", length = 4000)
    public String getNotes() {
        return this.notes;
    }

    public void setNotes(String notes) {
        this.notes = notes;
        this.gBasSku.setRemark(getNotes());

    }

    @Column(name = "PUTAWAYRULE", length = 20)
    public String getPutawayrule() {
        return this.putawayrule;
    }

    public void setPutawayrule(String putawayrule) {
        this.putawayrule = putawayrule;
    }

    @Column(name = "ALTERNATE_SKU1", length = 200)
    public String getAlternateSku1() {
        return this.alternateSku1;
    }

    public void setAlternateSku1(String alternateSku1) {
        this.alternateSku1 = alternateSku1;
        this.gBasSku.setBarcode(getAlternateSku1());
        this.gBasSku.setActionType("1");

    }

    @Column(name = "ALTERNATE_SKU2", length = 200)
    public String getAlternateSku2() {
        return this.alternateSku2;
    }

    public void setAlternateSku2(String alternateSku2) {
        this.alternateSku2 = alternateSku2;
    }

    @Column(name = "ALTERNATE_SKU3", length = 200)
    public String getAlternateSku3() {
        return this.alternateSku3;
    }

    public void setAlternateSku3(String alternateSku3) {
        this.alternateSku3 = alternateSku3;
    }

    @Column(name = "RESERVEDFIELD05", length = 400)
    public String getReservedfield05() {
        return this.reservedfield05;
    }

    public void setReservedfield05(String reservedfield05) {
        this.reservedfield05 = reservedfield05;
        this.gBasSku.setItemType(getReservedfield05());

    }

    @Column(name = "SKU_GROUP1", length = 200)
    public String getSkuGroup1() {
        return this.skuGroup1;
    }

    public void setSkuGroup1(String skuGroup1) {
        this.skuGroup1 = skuGroup1;
    }

    @Column(name = "SKU_GROUP2", length = 200)
    public String getSkuGroup2() {
        return this.skuGroup2;
    }

    public void setSkuGroup2(String skuGroup2) {
        this.skuGroup2 = skuGroup2;
        this.gBasSku.setColor(getSkuGroup2());

    }

    @Column(name = "SKU_GROUP3", length = 200)
    public String getSkuGroup3() {
        return this.skuGroup3;
    }

    public void setSkuGroup3(String skuGroup3) {
        this.skuGroup3 = skuGroup3;
        this.gBasSku.setSize(getSkuGroup3());

    }

    @Column(name = "SKU_GROUP4", length = 200)
    public String getSkuGroup4() {
        return this.skuGroup4;
    }

    public void setSkuGroup4(String skuGroup4) {
        this.skuGroup4 = skuGroup4;
        this.gBasSku.setBrandCode(getSkuGroup4());

    }

    @Column(name = "SKU_GROUP5", length = 200)
    public String getSkuGroup5() {
        return this.skuGroup5;
    }

    public void setSkuGroup5(String skuGroup5) {
        this.skuGroup5 = skuGroup5;
    }

    @Column(name = "RESERVEDFIELD01", length = 400)
    public String getReservedfield01() {
        return this.reservedfield01;
    }

    public void setReservedfield01(String reservedfield01) {
        this.reservedfield01 = reservedfield01;
    }

    @Column(name = "RESERVEDFIELD02", length = 400)
    public String getReservedfield02() {
        return this.reservedfield02;
    }

    public void setReservedfield02(String reservedfield02) {
        this.reservedfield02 = reservedfield02;
        this.gBasSku.setTitle(getReservedfield02());

    }

    @Column(name = "RESERVEDFIELD03", length = 400)
    public String getReservedfield03() {
        return this.reservedfield03;
    }

    public void setReservedfield03(String reservedfield03) {
        this.reservedfield03 = reservedfield03;
        this.gBasSku.setCategoryName(getReservedfield03());

    }

    @Column(name = "RESERVEDFIELD04", length = 400)
    public String getReservedfield04() {
        return this.reservedfield04;
    }

    public void setReservedfield04(String reservedfield04) {
        this.reservedfield04 = reservedfield04;
        this.gBasSku.setPricingCategory(getReservedfield04());

    }

    @Column(name = "DEFAULTRECEIVINGUOM", length = 10)
    public String getDefaultreceivinguom() {
        return this.defaultreceivinguom;
    }

    public void setDefaultreceivinguom(String defaultreceivinguom) {
        this.defaultreceivinguom = defaultreceivinguom;
    }

    @Column(name = "DEFAULTSHIPMENTUOM", length = 10)
    public String getDefaultshipmentuom() {
        return this.defaultshipmentuom;
    }

    public void setDefaultshipmentuom(String defaultshipmentuom) {
        this.defaultshipmentuom = defaultshipmentuom;
    }

    @Column(name = "DEFAULTHOLD", length = 10)
    public String getDefaulthold() {
        return this.defaulthold;
    }

    public void setDefaulthold(String defaulthold) {
        this.defaulthold = defaulthold;
    }

    @Column(name = "ROTATIONID", length = 10)
    public String getRotationid() {
        return this.rotationid;
    }

    public void setRotationid(String rotationid) {
        this.rotationid = rotationid;
    }

    @Column(name = "COPYPACKIDTOLOTATT12", length = 1)
    public String getCopypackidtolotatt12() {
        return this.copypackidtolotatt12;
    }

    public void setCopypackidtolotatt12(String copypackidtolotatt12) {
        this.copypackidtolotatt12 = copypackidtolotatt12;
    }

    @Column(name = "QTYMIN", precision = 18, scale = 3)
    public Double getQtymin() {
        return this.qtymin;
    }

    public void setQtymin(Double qtymin) {
        this.qtymin = qtymin;
        this.gBasSku.setSafetyStock(1+"");

    }

    @Column(name = "QTYMAX", precision = 18, scale = 3)
    public Double getQtymax() {
        return this.qtymax;
    }

    public void setQtymax(Double qtymax) {
        this.qtymax = qtymax;
    }

    @Column(name = "SHELFLIFE", precision = 22, scale = 0)
    public BigDecimal getShelflife() {
        return this.shelflife;
    }

    public void setShelflife(BigDecimal shelflife) {
        this.shelflife = shelflife;
        this.gBasSku.setShelfLife(getShelflife().toString());

    }

    @Column(name = "HSCODE", length = 15)
    public String getHscode() {
        return this.hscode;
    }

    public void setHscode(String hscode) {
        this.hscode = hscode;
    }

    @Column(name = "RESERVEDFIELD06", length = 400)
    public String getReservedfield06() {
        return this.reservedfield06;
    }

    public void setReservedfield06(String reservedfield06) {
        this.reservedfield06 = reservedfield06;
        this.gBasSku.setExtendProps(getReservedfield06());

    }

    @Column(name = "RESERVEDFIELD07", length = 400)
    public String getReservedfield07() {
        return this.reservedfield07;
    }

    public void setReservedfield07(String reservedfield07) {
        this.reservedfield07 = reservedfield07;
        this.gBasSku.setRetailPrice(getReservedfield07());

    }

    @Column(name = "RESERVEDFIELD08", length = 400)
    public String getReservedfield08() {
        return this.reservedfield08;
    }

    public void setReservedfield08(String reservedfield08) {
        this.reservedfield08 = reservedfield08;
        this.gBasSku.setCostPrice(getReservedfield08());

    }

    @Column(name = "RESERVEDFIELD09", length = 400)
    public String getReservedfield09() {
        return this.reservedfield09;
    }

    public void setReservedfield09(String reservedfield09) {
        this.reservedfield09 = reservedfield09;
       if(reservedfield09 .equals("")){
           this.gBasSku.setPurchasePrice("0.0");
       }else
       {
           this.gBasSku.setPurchasePrice(getReservedfield09());
       }


    }

    @Column(name = "RESERVEDFIELD10", length = 400)
    public String getReservedfield10() {
        return this.reservedfield10;
    }

    public void setReservedfield10(String reservedfield10) {
        this.reservedfield10 = reservedfield10;
        this.gBasSku.setSkuProperty(getReservedfield10());

    }

    @Column(name = "RESERVEDFIELD11", length = 400)
    public String getReservedfield11() {
        return this.reservedfield11;
    }

    public void setReservedfield11(String reservedfield11) {
        this.reservedfield11 = reservedfield11;
        this.gBasSku.setIsSku(getReservedfield11());

    }

    @Column(name = "RESERVEDFIELD12", length = 400)
    public String getReservedfield12() {
        return this.reservedfield12;
    }

    public void setReservedfield12(String reservedfield12) {
        this.reservedfield12 = reservedfield12;
        this.gBasSku.setBatchRemark(getReservedfield12());

    }

    @Column(name = "OVERRCVPERCENTAGE", precision = 18, scale = 4)
    public Double getOverrcvpercentage() {
        return this.overrcvpercentage;
    }

    public void setOverrcvpercentage(Double overrcvpercentage) {
        this.overrcvpercentage = overrcvpercentage;
    }

    @Column(name = "REPLENISHRULE", length = 20)
    public String getReplenishrule() {
        return this.replenishrule;
    }

    public void setReplenishrule(String replenishrule) {
        this.replenishrule = replenishrule;
    }

    @Column(name = "SPECIALMAINTENANCE", length = 1)
    public String getSpecialmaintenance() {
        return this.specialmaintenance;
    }

    public void setSpecialmaintenance(String specialmaintenance) {
        this.specialmaintenance = specialmaintenance;
    }

    @Column(name = "FIRSTOP", length = 1)
    public String getFirstop() {
        return this.firstop;
    }

    public void setFirstop(String firstop) {
        this.firstop = firstop;
    }

    @Column(name = "MEDICALTYPE", length = 15)
    public String getMedicaltype() {
        return this.medicaltype;
    }

    public void setMedicaltype(String medicaltype) {
        this.medicaltype = medicaltype;
    }

    @Column(name = "APPROVALNO", length = 400)
    public String getApprovalno() {
        return this.approvalno;
    }

    public void setApprovalno(String approvalno) {
        this.approvalno = approvalno;
    }

    @Column(name = "SN_ASN_QTY", length = 1)
    public String getSnAsnQty() {
        return this.snAsnQty;
    }

    public void setSnAsnQty(String snAsnQty) {
        this.snAsnQty = snAsnQty;
    }

    @Column(name = "SN_SO_QTY", length = 1)
    public String getSnSoQty() {
        return this.snSoQty;
    }

    public void setSnSoQty(String snSoQty) {
        this.snSoQty = snSoQty;
    }

    @Column(name = "INVCHGWITHSHIPMENT", length = 1)
    public String getInvchgwithshipment() {
        return this.invchgwithshipment;
    }

    public void setInvchgwithshipment(String invchgwithshipment) {
        this.invchgwithshipment = invchgwithshipment;
    }

    @Column(name = "FREIGHTCLASS", length = 20)
    public String getFreightclass() {
        return this.freightclass;
    }

    public void setFreightclass(String freightclass) {
        this.freightclass = freightclass;
        this.gBasSku.setCategoryId(getFreightclass());

    }

    @Column(name = "TARIFFID", length = 10)
    public String getTariffid() {
        return this.tariffid;
    }

    public void setTariffid(String tariffid) {
        this.tariffid = tariffid;
    }

    @Column(name = "KITFLAG", nullable = false, length = 1)
    public String getKitflag() {
        return this.kitflag;
    }

    public void setKitflag(String kitflag) {
        this.kitflag = kitflag;
    }

    @Column(name = "RESERVECODE", length = 2)
    public String getReservecode() {
        return this.reservecode;
    }

    public void setReservecode(String reservecode) {
        this.reservecode = reservecode;
    }

    @Column(name = "REPORTUOM", nullable = false, length = 10)
    public String getReportuom() {
        return this.reportuom;
    }

    public void setReportuom(String reportuom) {
        this.reportuom = reportuom;
    }

    @Column(name = "SKULENGTH", nullable = false, precision = 18, scale = 4)
    public Double getSkulength() {
        return this.skulength;
    }

    public void setSkulength(Double skulength) {
        this.skulength = skulength;
        this.gBasSku.setLength(getSkulength().toString());

    }

    @Column(name = "SKUWIDTH", nullable = false, precision = 18, scale = 4)
    public Double getSkuwidth() {
        return this.skuwidth;
    }

    public void setSkuwidth(Double skuwidth) {
        this.skuwidth = skuwidth;
        this.gBasSku.setWidth(getSkuwidth().toString());

    }

    @Column(name = "SKUHIGH", nullable = false, precision = 18, scale = 4)
    public Double getSkuhigh() {
        return this.skuhigh;
    }

    public void setSkuhigh(Double skuhigh) {
        this.skuhigh = skuhigh;
        this.gBasSku.setHeight(getSkuhigh().toString()+"");

    }

    @Column(name = "QCTIME", precision = 4, scale = 1)
    public Double getQctime() {
        return this.qctime;
    }

    public void setQctime(Double qctime) {
        this.qctime = qctime;
    }

    @Column(name = "QCRULE", length = 20)
    public String getQcrule() {
        return this.qcrule;
    }

    public void setQcrule(String qcrule) {
        this.qcrule = qcrule;
    }

    @Temporal(TemporalType.DATE)
    @Column(name = "FIRSTINBOUNDDATE", length = 7)
    public Date getFirstinbounddate() {
        return this.firstinbounddate;
    }

    public void setFirstinbounddate(Date firstinbounddate) {
        this.firstinbounddate = firstinbounddate;
    }

    @Column(name = "RESERVEDFIELD13", length = 400)
    public String getReservedfield13() {
        return this.reservedfield13;
    }

    public void setReservedfield13(String reservedfield13) {
        this.reservedfield13 = reservedfield13;
        this.gBasSku.setStockUnit(getReservedfield13());

    }

    @Column(name = "RESERVEDFIELD14", length = 400)
    public String getReservedfield14() {
        return this.reservedfield14;
    }

    public void setReservedfield14(String reservedfield14) {
        this.reservedfield14 = reservedfield14;
        this.gBasSku.setSeasonName(getReservedfield14());

    }

    @Column(name = "RESERVEDFIELD15", length = 400)
    public String getReservedfield15() {
        return this.reservedfield15;
    }

    public void setReservedfield15(String reservedfield15) {
        this.reservedfield15 = reservedfield15;
        this.gBasSku.setBrandName(getReservedfield15());

    }

    @Column(name = "SKU_GROUP6", length = 200)
    public String getSkuGroup6() {
        return this.skuGroup6;
    }

    public void setSkuGroup6(String skuGroup6) {
        this.skuGroup6 = skuGroup6;
        this.gBasSku.setSeasonCode(getSkuGroup6());

    }

    @Column(name = "SKU_GROUP7", length = 200)
    public String getSkuGroup7() {
        return this.skuGroup7;
    }

    public void setSkuGroup7(String skuGroup7) {
        this.skuGroup7 = skuGroup7;
        this.gBasSku.setPcr(getSkuGroup7());

    }

    @Column(name = "SKU_GROUP8", length = 200)
    public String getSkuGroup8() {
        return this.skuGroup8;
    }

    public void setSkuGroup8(String skuGroup8) {
        this.skuGroup8 = skuGroup8;
        this.gBasSku.setPackageMaterial(getSkuGroup8());

    }

    @Column(name = "SKU_GROUP9", length = 200)
    public String getSkuGroup9() {
        return this.skuGroup9;
    }

    public void setSkuGroup9(String skuGroup9) {
        this.skuGroup9 = skuGroup9;
        this.gBasSku.setOriginAddress(getSkuGroup9());

    }

    @Column(name = "MEDICINESPECICALCONTROL", length = 1)
    public String getMedicinespecicalcontrol() {
        return this.medicinespecicalcontrol;
    }

    public void setMedicinespecicalcontrol(String medicinespecicalcontrol) {
        this.medicinespecicalcontrol = medicinespecicalcontrol;
    }

    @Column(name = "SERIALNOCATCH", length = 1)
    public String getSerialnocatch() {
        return this.serialnocatch;
    }

    public void setSerialnocatch(String serialnocatch) {
        this.serialnocatch = serialnocatch;
    }

    @Column(name = "SCANWHENCASEPICKING", length = 1)
    public String getScanwhencasepicking() {
        return this.scanwhencasepicking;
    }

    public void setScanwhencasepicking(String scanwhencasepicking) {
        this.scanwhencasepicking = scanwhencasepicking;
    }

    @Column(name = "SCANWHENPIECEPICKING", length = 1)
    public String getScanwhenpiecepicking() {
        return this.scanwhenpiecepicking;
    }

    public void setScanwhenpiecepicking(String scanwhenpiecepicking) {
        this.scanwhenpiecepicking = scanwhenpiecepicking;
    }

    @Column(name = "SCANWHENCHECK", length = 1)
    public String getScanwhencheck() {
        return this.scanwhencheck;
    }

    public void setScanwhencheck(String scanwhencheck) {
        this.scanwhencheck = scanwhencheck;
    }

    @Column(name = "SCANWHENRECEIVE", length = 1)
    public String getScanwhenreceive() {
        return this.scanwhenreceive;
    }

    public void setScanwhenreceive(String scanwhenreceive) {
        this.scanwhenreceive = scanwhenreceive;
    }

    @Column(name = "SCANWHENPUTAWAY", length = 1)
    public String getScanwhenputaway() {
        return this.scanwhenputaway;
    }

    public void setScanwhenputaway(String scanwhenputaway) {
        this.scanwhenputaway = scanwhenputaway;
    }

    @Column(name = "SHELFLIFEALERTDAYS", precision = 22, scale = 0)
    public BigDecimal getShelflifealertdays() {
        return this.shelflifealertdays;
    }

    public void setShelflifealertdays(BigDecimal shelflifealertdays) {
        this.shelflifealertdays = shelflifealertdays;
        this.gBasSku.setAdventLifecycle(getShelflifealertdays());

    }

    @Column(name = "RESERVEDFIELD17", length = 60)
    public String getReservedfield17() {
        return this.reservedfield17;
    }

    public void setReservedfield17(String reservedfield17) {
        this.reservedfield17 = reservedfield17;
        this.gBasSku.setIsBatchMgmt(getReservedfield17());

    }

    @Column(name = "RESERVEDFIELD18", length = 60)
    public String getReservedfield18() {
        return this.reservedfield18;
    }

    public void setReservedfield18(String reservedfield18) {
        this.reservedfield18 = reservedfield18;
        this.gBasSku.setIsFragile(getReservedfield18());

    }

    @Column(name = "RESERVEDFIELD16", length = 60)
    public String getReservedfield16() {
        return this.reservedfield16;
    }

    public void setReservedfield16(String reservedfield16) {
        this.reservedfield16 = reservedfield16;
        this.gBasSku.setIsSNMgmt(getReservedfield16());

    }

    @Column(name = "CHK_SCN_UOM", length = 10)
    public String getChkScnUom() {
        return this.chkScnUom;
    }

    public void setChkScnUom(String chkScnUom) {
        this.chkScnUom = chkScnUom;
    }

    @Column(name = "ALTERNATIVE_PUTAWAYZONE1", length = 10)
    public String getAlternativePutawayzone1() {
        return this.alternativePutawayzone1;
    }

    public void setAlternativePutawayzone1(String alternativePutawayzone1) {
        this.alternativePutawayzone1 = alternativePutawayzone1;
    }

    @Column(name = "ALTERNATIVE_PUTAWAYZONE2", length = 10)
    public String getAlternativePutawayzone2() {
        return this.alternativePutawayzone2;
    }

    public void setAlternativePutawayzone2(String alternativePutawayzone2) {
        this.alternativePutawayzone2 = alternativePutawayzone2;
    }

    @Column(name = "SCANWHENPACK", length = 1)
    public String getScanwhenpack() {
        return this.scanwhenpack;
    }

    public void setScanwhenpack(String scanwhenpack) {
        this.scanwhenpack = scanwhenpack;
    }

    @Column(name = "SCANWHENMOVE", length = 1)
    public String getScanwhenmove() {
        return this.scanwhenmove;
    }

    public void setScanwhenmove(String scanwhenmove) {
        this.scanwhenmove = scanwhenmove;
    }

    @Column(name = "IMAGEADDRESS", length = 400)
    public String getImageaddress() {
        return this.imageaddress;
    }

    public void setImageaddress(String imageaddress) {
        this.imageaddress = imageaddress;
    }

    @Column(name = "ONESTEPALLOCATION", length = 1)
    public String getOnestepallocation() {
        return this.onestepallocation;
    }

    public void setOnestepallocation(String onestepallocation) {
        this.onestepallocation = onestepallocation;
    }

    @Column(name = "ORDERBYSQL", length = 200)
    public String getOrderbysql() {
        return this.orderbysql;
    }

    public void setOrderbysql(String orderbysql) {
        this.orderbysql = orderbysql;
    }

    @Column(name = "SECONDSERIALNOCATCH", length = 1)
    public String getSecondserialnocatch() {
        return this.secondserialnocatch;
    }

    public void setSecondserialnocatch(String secondserialnocatch) {
        this.secondserialnocatch = secondserialnocatch;
    }

    @Column(name = "ALLOWRECEIVING", length = 1)
    public String getAllowreceiving() {
        return this.allowreceiving;
    }

    public void setAllowreceiving(String allowreceiving) {
        this.allowreceiving = allowreceiving;
    }

    @Column(name = "ALLOWSHIPMENT", length = 1)
    public String getAllowshipment() {
        return this.allowshipment;
    }

    public void setAllowshipment(String allowshipment) {
        this.allowshipment = allowshipment;
    }

    @Column(name = "INBOUNDSERIALNOQTYCONTROL", length = 20)
    public String getInboundserialnoqtycontrol() {
        return this.inboundserialnoqtycontrol;
    }

    public void setInboundserialnoqtycontrol(String inboundserialnoqtycontrol) {
        this.inboundserialnoqtycontrol = inboundserialnoqtycontrol;
    }

    @Column(name = "OUTBOUNDSERIALNOQTYCONTROL", length = 20)
    public String getOutboundserialnoqtycontrol() {
        return this.outboundserialnoqtycontrol;
    }

    public void setOutboundserialnoqtycontrol(String outboundserialnoqtycontrol) {
        this.outboundserialnoqtycontrol = outboundserialnoqtycontrol;
    }

    @Column(name = "DEFAULTCARTONTYPE", length = 10)
    public String getDefaultcartontype() {
        return this.defaultcartontype;
    }

    public void setDefaultcartontype(String defaultcartontype) {
        this.defaultcartontype = defaultcartontype;
        this.gBasSku.setPcs(getDefaultcartontype());

    }

    @Column(name = "BREAKCS", length = 1)
    public String getBreakcs() {
        return this.breakcs;
    }

    public void setBreakcs(String breakcs) {
        this.breakcs = breakcs;
    }

    @Column(name = "BREAKEA", length = 1)
    public String getBreakea() {
        return this.breakea;
    }

    public void setBreakea(String breakea) {
        this.breakea = breakea;
    }

    @Column(name = "BREAKIP", length = 1)
    public String getBreakip() {
        return this.breakip;
    }

    public void setBreakip(String breakip) {
        this.breakip = breakip;
    }

    @Column(name = "PRINTMEDICINEQCREPORT", length = 1)
    public String getPrintmedicineqcreport() {
        return this.printmedicineqcreport;
    }

    public void setPrintmedicineqcreport(String printmedicineqcreport) {
        this.printmedicineqcreport = printmedicineqcreport;
    }

    @Column(name = "SCANWHENQC", length = 1)
    public String getScanwhenqc() {
        return this.scanwhenqc;
    }

    public void setScanwhenqc(String scanwhenqc) {
        this.scanwhenqc = scanwhenqc;
    }

    @Column(name = "OVERRECEIVING", length = 1)
    public String getOverreceiving() {
        return this.overreceiving;
    }

    public void setOverreceiving(String overreceiving) {
        this.overreceiving = overreceiving;
    }

    @Column(name = "DEFAULTSUPPLIERID", length = 30)
    public String getDefaultsupplierid() {
        return this.defaultsupplierid;
    }

    public void setDefaultsupplierid(String defaultsupplierid) {
        this.defaultsupplierid = defaultsupplierid;
    }

    @Column(name = "CAS_ULD_PHR", precision = 22, scale = 0)
    public BigDecimal getCasUldPhr() {
        return this.casUldPhr;
    }

    public void setCasUldPhr(BigDecimal casUldPhr) {
        this.casUldPhr = casUldPhr;
    }

    @Column(name = "SCANWHENINVSCAN", length = 1)
    public String getScanwheninvscan() {
        return this.scanwheninvscan;
    }

    public void setScanwheninvscan(String scanwheninvscan) {
        this.scanwheninvscan = scanwheninvscan;
    }

    @Column(name = "MAINTENANCEREASON", length = 20)
    public String getMaintenancereason() {
        return this.maintenancereason;
    }

    public void setMaintenancereason(String maintenancereason) {
        this.maintenancereason = maintenancereason;
    }

    @Column(name = "PICKPACKID", length = 40)
    public String getPickpackid() {
        return this.pickpackid;
    }

    public void setPickpackid(String pickpackid) {
        this.pickpackid = pickpackid;
    }


}
